package com.test03_类与对象;

/**
 * 静态代码块
 */
public class YootkDemo_08 {

    public static void main(String[] args) {
        System.out.println("【主方法】" + Book8.title);
    }
}

class Book8 {
    public static String title = null;

    static {    // 静态代码块
        title = "沐言优拓：www.yootk.com\n";
        title = title + "李兴华编程训练营：yootk.ke.qq.com\n";
        title = title + "Hello 爆可爱的小李老师";
        System.out.println("【静态块】" + title);
    }
}
